import { http } from "@/utils"


/**
 * @description 获取用户权限
 */
const getUserPermission = (userId) => {
    return new Promise((resolve, reject) => {
        http.get({
            params: {
                userId
            },
            url: "/auth/permission",
            success: res => {
                console.log("获取用户权限成功",res)
                resolve(res?.data)
            },
            failure: msg => {
                reject(msg)
            }
        })
    })
}
export default getUserPermission;